vtex / openapi-schemas Goto Github PK
View Code? Open in Web Editor NEWOpenAPI 3.0 JSON schemas. Files are automatically synced to the VTEX Developer Portal.
Home Page: https://developers.vtex.com/docs/api-reference
OpenAPI 3.0 JSON schemas. Files are automatically synced to the VTEX Developer Portal.
Home Page: https://developers.vtex.com/docs/api-reference
Existe algum curso para especializar-se em desenvolvimento VTEX?
Procurei no Google e na plataforma VTEX, mas achei muito confuso e não consegui entender. Alguém pode me ajudar?
Estou tentando utilizar o exemplo disponível em https://developers.vtex.com/reference/catalog-api-sku-file#catalog-api-post-sku-file para criar uma nova imagem para um produto mas esse endpoint parece não estar funcionando. Poderiam corrigir ou me dizer o que estou fazendo de errado nesse caso?
Eu já confirmei que minhas credenciais estão OK (consigo fazer um GET nessa mesma API para listar as imagens desse SKU) e tentei fazer tanto através da URL quanto no meu postman recriando passo-a-passo, mas o resultado é sempre o mesmo (400 Bad Request - Parameter is not valid):
Request body:
{ IsMain: false, Label: 'label', Name: 'prod-bottle', Url: 'https://intellihub.s3.us-east-2.amazonaws.com/testobjs/07891150060883.jpg', Text: 'product-bottle' }
Response body:
{ "Message": "Parameter is not valid." }
Response header:
access-control-allow-origin: *
cache-control: no-cache
connection: keep-alive
content-length: 37
content-type: application/json; charset=utf-8
date: Fri, 09 Oct 2020 00:08:40 GMT
expires: -1
pragma: no-cache
server: Microsoft-IIS/10.0
x-aspnet-version: 4.0.30319
x-powered-by: ASP.NET
x-vtex-janus-router-backend-app: ctgapi-vv1.16.42+263
Pessoal,
Eu não entendi direito o manual. Então não sei se está descrito como resolver.
Mas, estou com dificuldade no postman para por o 'X-VTEX-API-AppKey' e '{{X-VTEX-API-AppToken}}'.
Em todas as coleções, eles não vem preenchidos. Antigamente, vinham direto no header do request quando pvt. Agora eu preciso ficar preenchendo-os em cada request.
Para contornar isso, eu criei as 2 linhas abaixo no "Pré-request Script" de cada coleção. Mas, são muitas coleções.
pm.request.headers.add ({key: 'X-VTEX-API-AppKey', value: '{{X-VTEX-API-AppKey}}'})
pm.request.headers.upsert ({key: 'X-VTEX-API-AppToken', value: '{{X-VTEX-API-AppToken}}'} )
Existe outra forma de configurar 1 única vez o key/token e funcionar para todas as coleções?
Cara eu não to conseguindo duplicar um site por cms vtex 8596144336
Describe the bug
According to the OpenAPI schema 3.0 each type of array needs a sibling with the name "items".
At least in the logistics, this is not the case in some cases. Postman does NOT have a problem with this, but swagger (defining the spec) does!
The specification should more or less look like this, but is forgotten in some of the definitions in the logistics section. i did not cross check the others.
{
"type": "array",
"items": {
"type": "string" | "object"
}
}
Expected behavior
The specification should be followed and the code should be importable in swagger without any issues..
Screenshots
If applicable, add screenshots to help explain your problem.
When I validate the schema with openapi tool generator on catalog api, I get these errors:
Errors:
- attribute
paths.'/api/catalog-seller-portal/products/{param}={value}'(get).responses.200.content.'application/json'.schema.items
is missing
- attribute
paths.'/api/catalog-seller-portal/products/{productId}'(get).responses.200.content.'application/json'.schema.items
is missing
- attribute
paths.'/api/catalog-seller-portal/products'(post).requestBody.content.'application/json'.schema.items
is missing
- attribute
paths.'/api/catalog-seller-portal/products'(post).responses.200.content.'application/json'.schema.items
is missing
- attribute
paths.'/api/catalog-seller-portal/products/{productId}'(put).requestBody.content.'application/json'.schema.items
is missing
How to fix that?
Tentei gerar um cliente java usando o esquema swagger do Catalog API porém ele é inválido, segundo o Swagger Editor. Mesmo gerando o cliente com o ignore-spec ele fica com vários objetos de retorno e envio com nomes de Example e Request, criando um código muito porco. Se é o esquema oficial das APIs da Vtex poderia pelo menos seguir de verdade o padrão OpenAPI 3. @karenkrieger @brunoamui @JulianaMeyerArruda @brenobarreto @georgebrindeiro @garrucho
Previous version named CatalogV2 had the Get Products List method which returned all the products from the seller account with pagination - old URL https://developers.vtex.com/vtex-rest-api/reference/list
This method allowed for scenarios of quickly indexing the Seller Portal CatalogV2 products for the purpose of mapping the products to the Marketplace CatalogV1 - see project https://github.com/vtex-apps/seller-send-offers and specifically:
Reference: #637
On the Catalog Seller Portal API reference page the link to the Get Product by external ID, SKU ID, SKU external ID or slug method is broken.
However, the documentation is present in the VTEX - Catalog API Seller Portal.json
file https://github.com/vtex/openapi-schemas/blob/master/VTEX%20-%20Catalog%20API%20Seller%20Portal.json#L1352
Reference: #637
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.