Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

For development in Eclipse use " mvn eclipse:eclipse -Dwtpversion=2.0 "

Repository-RI

New features V2.00:

  • Content Header Negotiation Supported Types for reading Resource Meta Information or Collection Information:
    • application/json
    • application/rdf+xml
    • text/turtle
    • text/n3
    • text/html
    • application/x-ms-application"
    • text/plain
    • application/xml

  1. Install Mongodb and create a database "test".
  2. Start Mongo DB: PATH_TO_MONGO\bin\mongod.exe --dbpath PATH_TO_MONGO\data\db

2)Deploy FiwareRepository.war to a Tomcat 6.x: tomcat\bin\startup.bat

  1. Create a Resource [PUT] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName

  2. Read the Resource [GET] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName

Create Resource

Create Resource Request: URL: [PUT] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName Header: {Accept=*} Body: [Content]

Create Resource Response: Response Status: 201


Update Resource Meta Data

Create Resource Request: URL: [POST] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName Header: {Accept=[application/xml],[application/json]} Body: content

Create Resource Response: Response Status: 201


Get Resource

Get Resource Request: URL: [GET] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName Header: {Accept=*}

Get Resource Response: Response Status: 200


Get Resource Meta Data

Get Resource Meta Data Request: URL: [GET] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName.meta Header: {Accept=[application/xml],[application/json]}

Get Resource Meta Data Response: Response Status: 200


Delete Resource

Delete Resource Request: URL: [DELETE] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ResourceName Header: {Accept=*}

Delete Resource Response: Response Status: 204


Update Collection

Update Collection Request: URL: [POST] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionY Header: {Accept=[application/xml],[application/json]} Body: CreatornameUpdate

Update Collection Response:

Response Status:
201

Get Collection

Get Collection Request: URL: [GET] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA/collectionB/ Header: Accept=[application/xml],[application/json]}

Get Collection Response: Response Status: 200


Delete Collection

Delete CollectionRequest: URL: [DELETE] http://[SYSTEM:PORT]/FiwareRepository/v1/collectionA Header: {Accept=*}

Delete Collection Response: Response Status: 204

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published